<template>
  <div class="search">
    <a-input class="search-input" v-model="title"></a-input>
    <a-button type="primary" class="a-button-blue" @click="search">搜 索</a-button>
  </div>
</template>
<script>
export default {
  data() {
    return {
      title: ''
    };
  },
  methods: {
    search() {
      this.$emit('search', this.title);
    }
  }
};
</script>
<style lang="less" scoped>
.search {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  .search-input {
    max-width: 814px;
    width: 70%;
    height: 49px;
    background: #F6F6F6;
    border-radius: 25px;
    padding-left: 20px;
    font-size: 20px;
  }
  .a-button-blue {
    width: 110px;
    height: 49px;
    background: #1F3B8A;
    border-radius: 25px;
    margin-left: 30px;
    font-size: 18px !important;
  }
}
</style>
